import { PageParams } from "@/types/global.d.ts"
import { http } from '@/utils/http'
import {HotResult} from '@/types/hot.d.ts'

type hotParams = Pageparams & {subType?: string}

/**
 * 通用热门推荐类型
 * @param url 请求地址
 * @param data 请求参数
 */
export const getHotRecommendAPI = (url: string, data?: HotParams) => {
  return http<HotResult>({
    method: 'GET',
    url,
    data,
  })
}
